package com.atom.module.mvvm.base

import android.os.Bundle
import androidx.fragment.app.Fragment

interface ApiActivity {

    fun loadFragment(
        fragment: Fragment,
        addToBackStack: Boolean = true
    )

    fun loadFragment(
        fragmentClass: Class<out Fragment>,
        addToBackStack: Boolean = true,
        bundle: Bundle? = null
    )

    fun changeFragment(
        newFragment: Fragment,
        oldFragment: Fragment? = null
    )

}
